
// import type { ApifoxModel, CarListParams } from "@/types/car"
// import { request } from "@/utils/reuqest"

// /**
//  * 获取规则列表
//  * @param { page, pageSize} params
//  * @returns
//  */
// export const getRuleListAPI = (params: CarListParams) =>
//   request<ApifoxModel>("/car/rule/list", "GET", params)

import type { RuleListData, RuleListParams } from "@/types/car"
import { request } from "@/utils/reuqest"

/**
 * 获取规则列表
 * @param { page, pageSize } params
 * @returns
 */
export const getRuleListAPI = (params: RuleListParams) => {
  return request<RuleListData>('/parking/rule/list', 'GET', params)
}